import request from '@/utils/request'

// 查询测试场次列表
export function listTestSession(query) {
  return request({
    url: '/business/testSession/list',
    method: 'get',
    params: query
  })
}

// 查询测试场次详细
export function getTestSession(id) {
  return request({
    url: '/business/testSession/' + id,
    method: 'get'
  })
}

// 新增测试场次
export function addTestSession(data) {
  return request({
    url: '/business/testSession',
    method: 'post',
    data: data
  })
}

// 修改测试场次
export function updateTestSession(data) {
  return request({
    url: '/business/testSession',
    method: 'put',
    data: data
  })
}

// 删除测试场次
export function delTestSession(id) {
  return request({
    url: '/business/testSession/' + id,
    method: 'delete'
  })
}
